﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model.TransfersConfig
{
    [Serializable]
    public class TransfersTask
    {
        private List<Hotelinfo> hotels_ = new List<Hotelinfo>();

        private DateTime triggerTime_;

        public DateTime TriggerTime
        {
            get { return triggerTime_; }
            set { triggerTime_ = value; }
        }

        public List<Hotelinfo> Hotels
        {
            get { return hotels_; }
            set { hotels_ = value; }
        }
    }
    [Serializable]
    public class Hotelinfo
    {
        private string hotelid_;

        public string Hotelid
        {
            get { return hotelid_; }
            set { hotelid_ = value; }
        }
        private DateTime triggerTime_;

        public DateTime TriggerTime
        {
            get { return triggerTime_; }
            set { triggerTime_ = value; }
        }
        private string dateInterFace_;

        public string DateInterFace
        {
            get { return dateInterFace_; }
            set { dateInterFace_ = value; }
        }

        private List<TaskTable> tables=new List<TaskTable>(); 
        
        public List<TaskTable> Tables
        {
            get { return tables; }
            set { tables = value; }
        }

    }
    [Serializable]
    public class TaskTable
    {
        private string hotelTableName_;

        public string HotelTableName
        {
            get { return hotelTableName_; }
            set { hotelTableName_ = value; }
        }
        private string centertableName_;

        public string CenterTableName
        {
            get { return centertableName_; }
            set { centertableName_ = value; }
        }
        private string[] tablePrimarykey_;

        public string[] TablePrimaryKey
        {
            get { return tablePrimarykey_; }
            set { tablePrimarykey_ = value; }
        }
        private string dateSource_;

        public string DateSource
        {
            get { return dateSource_; }
            set { dateSource_ = value; }
        }
        private string sqlCondition_;

        public string SqlCondition
        {
            get { return sqlCondition_; }
            set { sqlCondition_ = value; }
        }

        private Type entity_;
        public Type Entity
        {
            get { return entity_; }
            set { entity_ = value; }
        }

        private string descript_;

        public string Descript
        {
            get { return descript_; }
            set { descript_ = value; }
        }

        private bool RequireTransfers_;

        public bool RequireTransfers
        {
            get { return RequireTransfers_; }
            set { RequireTransfers_ = value; }
        }

    }
}
